import 'package:flutter/material.dart';
import 'package:my_photos/l10n/l10n.dart';
import 'package:my_photos/ui/home/landing_page_widget.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'generated/l10n.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      supportedLocales: appSupportedLocales,
      localeListResolutionCallback: localResolutionCallBack,
      localizationsDelegates: [
        ...AppLocalizations.localizationsDelegates,
        S.delegate
      ],
      home: LandingPageWidget(),
    );
  }
}
